import request from '#/utils/requestAbort';

// 发电情况(桑基图)
export async function operationSanKey(params) {
  return request('/management-analysis/operation/powerGenerationSanChi', {
    method: 'POST',
    data: params,
  });
}
//导航菜单
export async function getBusinessMenus(params) {
  return request(`/power/menu/findPageMenu/${params}`);
}

//安全
export async function getSecurityData(params) {
  return request('/management-analysis/safeAccident/findAccidentByDate', {
    method: 'POST',
    data: params,
  });
}
//安全弹框
export async function getSecurityModalData(params) {
  return request('/management-analysis/safeAccident/findAccidentByDateAndType', {
    method: 'POST',
    data: params,
  });
}
//运营下拉框
export async function getSourceSelectData(params) {
  return request('/management-analysis/operation/operationDropDownBox', {
    method: 'GET',
    data: params,
  });
}
export async function getSourceSelectModalData(params) {
  return request('/management-analysis/operation/centerBulletFrame', {
    method: 'POST',
    data: params,
  });
}

//设备指标
export async function equipmentIndex(params) {
  return request('/management-analysis/operation/equipmentIndex', {
    method: 'POST',
    data: params,
  });
}

// 风电场可利用率、故障复现率
export async function utilizationAndFaultRate(params) {
  return request('/management-analysis/operation/utilizationAndFaultRate', {
    method: 'POST',
    data: params,
  });
}
// 发电情况(表格)
export async function powerGenerationTable(params) {
  return request('/management-analysis/operation/powerGenerationTable', {
    method: 'POST',
    data: params,
  });
}

// 经营
export async function operateIndex(params) {
  return request('/management-analysis/operation/operate', {
    method: 'POST',
    data: params,
  });
}

// 售电地图
export async function sellPowerMap(params) {
  return request('/management-analysis/map/sellPowerMap', {
    method: 'POST',
    data: params,
  });
}

// 交易地图
export async function tradeMap(params) {
  return request('/management-analysis/map/tradeMap', {
    method: 'POST',
    data: params,
  });
}
//偏差弹框数据
export async function deviationModalData(params) {
  return request('/management-analysis/sale/deviationAssessment', {
    method: 'POST',
    data: params,
  });
}

//售电表格
export async function saleTable(params) {
  return request('/management-analysis/sale/saleTable', {
    method: 'POST',
    data: params,
  });
}

//交易表格
export async function transactionTable(params) {
  return request('/management-analysis/transaction/transactionTable', {
    method: 'POST',
    data: params,
  });
}
